package cn.lj.dao;


import cn.lj.domain.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserDao {
//    根据用户名和用户密码查询用户
    @Select("select * from user where username = #{username} and password = #{password}")
    User findByUserNameAndPassword(@Param("username") String username,@Param("password") String password);
}
